<?
session_name ($instance->getSession ());
error_reporting(E_ALL ^ E_NOTICE);

set_time_limit (0);
if (!isset ($_GET['itemId']) || !$_GET['itemId'] || !isset ($_GET['auth']) || !$_GET['auth'])
	throw new Exception ('Houve perda de vari�veis!');
$itemId = $_GET['itemId'];

	


require_once Instance::singleton ()->getCorePath () .'extra/fpdf.php';
define('FPDF_FONTPATH','local/component/cpcx.Ci/_script/font/');
$db  = Database::singleton();

class PDF_HIST extends Pdf
{
	//Page header
	function Header()
	{
		global $ObjCab;
		
		$this->Image('local/component/cpcx.Ci/_script/ufms_logo.jpg',10,8,23);
		$this->Image('local/component/cpcx.Ci/_script/brasao.jpg',180,8,23);
		
		$this->SetFont('Arial',8);
		$this->Cell(0,4,'Serviço Público Federal',0,1,'C');
		
		$this->SetFont('Arial',7);
		$this->Cell(0,4,'Ministério da Educação',0,1,'C');
		
		$this->SetFont('Arial','B',7);
		$this->Cell(0,4,'Fundação Universidade Federal de Mato Grosso do Sul',0,1,'C');
		
		$this->Ln(5);
		
		//Arial bold 15
		$this->SetFont('Arial','IB',16);
		//Title
		$this->Cell(0,10,'Hist�rico Escolar',0,0,'C');
		
		//Line break
		$this->Ln(15);
		
	}
	
	//Page footer
	function Footer()
	{
			//Position at 1.5 cm from bottom
			$this->SetY(-15);
			//Arial italic 8
			$this->SetFont('Arial','B',8);
			//Page number
			$this->Cell(180,10,'P�gina '.$this->PageNo().'/{nb}',0,0,'L');

	}
}




$pdf = new PDF_HIST('P','mm','a4');
$pdf->AliasNbPages();
$pdf->AddPage();

$pdf->SetFont('Arial','B',12);


$pdf->OutPut();
?>
